package com.zsy.dao.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhaoshouyun
 * @since 2020-04-15
 */
@TableName("TB_PERMISSION")
public class TbPermission extends Model<TbPermission> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private BigDecimal id;

    @TableField("PARENT_ID")
    private BigDecimal parentId;

    @TableField("NAME")
    private String name;

    @TableField("ENNAME")
    private String enname;

    @TableField("URL")
    private String url;

    @TableField("DESCRIPTION")
    private String description;

    @TableField("CREATED")
    private Date created;

    @TableField("UPDATED")
    private Date updated;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }
    public BigDecimal getParentId() {
        return parentId;
    }

    public void setParentId(BigDecimal parentId) {
        this.parentId = parentId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getEnname() {
        return enname;
    }

    public void setEnname(String enname) {
        this.enname = enname;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }
    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TbPermission{" +
            "id=" + id +
            ", parentId=" + parentId +
            ", name=" + name +
            ", enname=" + enname +
            ", url=" + url +
            ", description=" + description +
            ", created=" + created +
            ", updated=" + updated +
        "}";
    }
}
